<table class="occasion_list_box" border="1px solid silver;">
  <tr>
    <th width="60%">お祝いイベント名</th>
    <th>カテゴリ</th>
    <th>状態</th>
    <th>承認</th>
  </tr>

<% occasions.each do |occasion| %>
  <tr>
    <td>
    <% if show_favorite %>
      <% participation = occasion.occasion_participations.first %>
      <% elem_id = "occasion_participation_#{participation.id}" %>
      <span id="<%= elem_id %>"><%= render :partial => "favorite", :locals => { :oid => occasion.oid, :participation => participation, :update_elem_id => elem_id } %></span>
    <% end %>
      <%= occasion_link_to occasion %>
    </td>
    <td>
      <%= icon_tag(occasion.category_icon_name.first, :title => occasion.category_icon_name.last, :margin => true) + occasion.category_icon_name.last %>
    </td>
    <td><%= participation_state(occasion, user_id, {:simple => true}) -%></td>
    <td><%= "#{icon_tag 'key'} 必要" if occasion.protected? %></td>
  </tr>
<% end %>
</table>
